package org.appchat.service.protobuf;


import org.appchat.api.Listener;
import org.appchat.service.ReflectionUtils;
import org.junit.Assert;

/**
 * Created by Ryan of app-chat.org
 * on: 7/12/12 at 11:19 PM
 */
public class ReflectionTesting {

    @org.junit.Test
    public void testCanRetrieveParameterizedType() {
        Listener<Test.SearchRequest> listener = new TestMessageListener();

        Class<?> clazz = ReflectionUtils.getParameterizedTypeFromInterface(listener);

        Assert.assertEquals(clazz, Test.SearchRequest.class);

    }

}
